#pragma once
#ifndef _INC_STACK
#define _INC_STACK


#include "Polynomial.h"
#include "Book.h"
#include "Status.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>


#define Elemtype Book
#define MAXLEN 100

typedef struct {
	Elemtype data[MAXLEN];
	int top;
}StackType;



StackType* STInit();

int STIsEmpty(StackType* s);

int STIsFull(StackType* s);

void STClear(StackType* s);

void STFree(StackType* s);

int PushST(StackType* s, Elemtype data);

Elemtype* PopST(StackType* s);

Elemtype* PeekST(StackType* s);

#endif
